//
//  JwHudView.m
//  JwPack
//
//  Created by 陈警卫 on 2024-08-23.
//

#import "JwHudView.h"
#import "JwMacro.h"
#import "JwCore.h"
#import "JwCate.h"
#import "JwSingle.h"
#import "JwExten.h"

#import "JwFrame.h"
#import "JwGeneral.h"

@implementation JwHudView

- (void)awakeFromNib {
    [super awakeFromNib];
    
    self.backgroundColor = [UIColor clearColor];
}

- (IBAction)loadAction:(UIButton *)sender {
    JwProgressHUD *hud = [JwProgressHUD showHUD];
    [hud hideAnimated:YES afterDelay:3.0];
}

- (IBAction)showTextAction:(UIButton *)sender {
    [JwProgressHUD showText:@"text"];
}

- (IBAction)showLoadTextAction:(UIButton *)sender {
    JwProgressHUD *hud = [JwProgressHUD showHUDText:@"loading"];
    [hud hideAnimated:YES afterDelay:3.0];
}

- (IBAction)showSuccessAction:(id)sender {
    [JwProgressHUD showSuccess:nil];
}

- (IBAction)showErrorAction:(id)sender {
    [JwProgressHUD showError:nil];
}

- (IBAction)showWarnAction:(id)sender {
    [JwProgressHUD showWarning:nil];
}






@end
